import { BaseEntity } from '@cool-midway/core';
import { Inject } from '@midwayjs/core';
import { Column, Entity } from 'typeorm';

/**
 * 应用管理
 */
@Entity('task_app')
export class TaskAppEntity extends BaseEntity {
  @Column({ comment: '名称' })
  name: string;

  @Inject()
  @Column({ comment: 'appId' })
  appId: string;

  @Inject()
  @Column({ comment: 'appSecret' })
  appSecret: string;

  @Column({ comment: '状态 0-禁用 1-启用', default: 1 })
  status: number;

  @Column({ comment: '描述', nullable: true })
  description: string;
}
